/* Resource Import - Optimized for 16:9 Pad 1920x1080 */
.resource-import {
  padding: 1.5rem 2rem;
  max-width: 100%;
  margin: 0;
  min-height: 100vh;
}

.import-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #334155;
}

.header-content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.header-content p {
  color: #94a3b8;
  margin: 0;
  font-size: 1rem;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  background: #334155;
  color: #e2e8f0;
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.back-btn svg {
  width: 20px;
  height: 20px;
}

.back-btn:hover {
  background: #475569;
  color: #f8fafc;
  transform: translateY(-2px);
}

.import-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 上传区域 */
.upload-zone {
  border: 3px dashed #475569;
  border-radius: 1rem;
  padding: 3.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #0f172a;
}

.upload-zone:hover,
.upload-zone.drag-active {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.upload-content svg {
  color: #667eea;
  width: 56px;
  height: 56px;
}

.upload-content h3 {
  font-size: 1.5rem;
  color: #f8fafc;
  margin: 0;
  font-weight: 700;
}

.upload-content p {
  color: #94a3b8;
  margin: 0;
  font-size: 1.0625rem;
}

.upload-formats {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.format-tag {
  background: #334155;
  color: #e2e8f0;
  padding: 0.375rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* 文件列表 */
.files-section {
  background: #0f172a;
  border: 2px solid #334155;
  border-radius: 1rem;
  overflow: hidden;
}

.files-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 2px solid #334155;
}

.files-header h3 {
  font-size: 1.375rem;
  color: #f8fafc;
  margin: 0;
  font-weight: 700;
}

.reset-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.25rem;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.reset-btn svg {
  width: 18px;
  height: 18px;
}

.reset-btn:hover {
  background: #5a67d8;
  transform: translateY(-1px);
}

.files-list {
  padding: 1.25rem;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.125rem;
  background: #0f172a;
  border: 2px solid #334155;
  border-radius: 0.875rem;
  margin-bottom: 0.875rem;
  transition: all 0.2s ease;
}

.file-item:hover {
  border-color: #475569;
  background: #1e293b;
  transform: translateX(4px);
}

.file-item:last-child {
  margin-bottom: 0;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  flex: 1;
}

.file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: #334155;
  border-radius: 0.75rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.file-icon svg {
  width: 24px;
  height: 24px;
}

.file-details {
  flex: 1;
}

.file-name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0 0 0.375rem 0;
  word-break: break-all;
  line-height: 1.3;
}

.file-meta {
  font-size: 0.9375rem;
  color: #94a3b8;
  margin: 0;
}

.file-status {
  min-width: 140px;
}

.upload-progress {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: #334155;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.9375rem;
  color: #94a3b8;
  font-weight: 600;
  min-width: 3.5rem;
  text-align: right;
}

.status-success {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #10b981;
  font-size: 0.9375rem;
  font-weight: 600;
}

.status-success svg {
  width: 20px;
  height: 20px;
}

.status-error {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #ef4444;
  font-size: 0.9375rem;
  font-weight: 600;
}

.status-error svg {
  width: 20px;
  height: 20px;
}

.file-actions {
  display: flex;
  gap: 0.625rem;
}

.remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.remove-btn svg {
  width: 20px;
  height: 20px;
}

.remove-btn:hover {
  background: #b91c1c;
  transform: scale(1.05);
}

/* 上传成功状态 */
.upload-success {
  padding: 2rem;
  text-align: center;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid #10b981;
  border-radius: 8px;
  margin: 1rem;
}

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.success-content svg {
  color: #10b981;
}

.success-content h3 {
  font-size: 1.5rem;
  color: #f8fafc;
  margin: 0;
}

.success-content p {
  color: #94a3b8;
  margin: 0;
}

.success-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.view-library-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  background: #10b981;
  color: white;
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.view-library-btn svg {
  width: 20px;
  height: 20px;
}

.view-library-btn:hover {
  background: #059669;
  transform: translateY(-2px);
}

.upload-more-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  background: #334155;
  color: #e2e8f0;
  border: 2px solid #475569;
  border-radius: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.upload-more-btn svg {
  width: 20px;
  height: 20px;
}

.upload-more-btn:hover {
  background: #475569;
  color: #f8fafc;
  transform: translateY(-2px);
}

/* 导入设置 */
.import-settings {
  background: #0f172a;
  border: 2px solid #334155;
  border-radius: 1rem;
  padding: 1.5rem;
}

.import-settings h3 {
  font-size: 1.375rem;
  color: #f8fafc;
  margin: 0 0 1.5rem 0;
  font-weight: 700;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.setting-item {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.setting-item label {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-weight: 600;
  font-size: 1rem;
  color: #f8fafc;
  cursor: pointer;
}

.setting-item input[type="checkbox"] {
  width: 1.375rem;
  height: 1.375rem;
  accent-color: #667eea;
  cursor: pointer;
}

.setting-item p {
  color: #94a3b8;
  font-size: 0.9375rem;
  margin: 0;
  margin-left: 2.25rem;
  line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .resource-import {
    padding: 1rem;
  }
  
  .import-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .file-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .file-info {
    width: 100%;
  }
  
  .file-status {
    width: 100%;
    min-width: auto;
  }
  
  .success-actions {
    flex-direction: column;
  }
  
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
